package com.wn.sk.product.core.exception;

import org.springframework.util.StringUtils;

/**
 * @author yellow Docter
 * @date 2022 -09-13
 * @desc
 */
public class Asserts {

    public static void  failed(String msg){

        if (StringUtils.hasText(msg)){
            throw new BusinessException(msg);
        }
    }

}
